package cn.jlonely.xyhx.app.service.impl;

import cn.jlonely.xyhx.app.service.AppNotificationService;
import cn.jlonely.xyhx.pojo.Notification;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.jlonely.xyhx.app.mapper.AppNotificationMapper;

import java.util.List;

@Service
public class AppNotificationServiceImpl implements AppNotificationService {

    @Autowired
    private AppNotificationMapper appNotificationMapper;

    /**
     * 获取所有通知
     * @return
     */
    @Override
    public List<Notification> getNotificationAll() {
     List<Notification>notifications =  appNotificationMapper.getNotificationAll();
     return notifications;
    }
}
